package xyz.bali16.module.ban.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.bali16.module.ban.entity.Ban;
import xyz.bali16.module.ban.model.BanAddParam;
import xyz.bali16.module.ban.model.BanPageParam;
import xyz.bali16.module.ban.model.BanUpdateParam;

/**
 * @author bali2 on 9/3/2023.
 * @version 1.0
 */
public interface BanService extends IService<Ban> {

    IPage<Ban> getPage(BanPageParam param);

    void addBan(BanAddParam param) throws Exception;

    void updateBan(BanUpdateParam param) throws Exception;

    void updateStatus(String banId, Integer status) throws Exception;

    void delete(String banId) throws Exception;


}
